<!-- 手机详情页 -->
<template>
  <div class="index">
    <div class="box">
      <div class="box-no1">
        <h2 class="box-h1">手机</h2>
        <a class="box-h2" href="javascript:;">
          查看更多
          <i class="iconfont">&#xeb22;</i>
        </a>
      </div>
      <div class="banner">
        <div class="banner_left">
          <a href="#">
            <img src="/imgs/mix-alpha.jpg" alt>
          </a>
        </div>
        <div class="banner_right">
          <div class="list">
            <router-link to="/phone">
              <div class="item">
                <span class="green-pro">新品</span>
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6f2493e6c6fe8e2485c407e5d75e3651.jpg"
                    alt
                  >
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
            </router-link>
            <router-link to="/phone">
            <div class="item">
              <span class="red-pro">特惠</span>
              <div class="item-img">
                <img
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/4c87947d104ee5833913e4c520108f16.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>Redmi Note 7</h3>
                <p>4800万拍照千元机</p>
                <p class="price">1199元</p>
              </div>
            </div></router-link>
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8737a33c78a94bc36afb860ab23b3939.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>小米9 王源限量版</h3>
                <p>骁龙855，索尼4800万三摄</p>
                <p class="price">3599元</p>
              </div>
            </div></router-link>
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/4c87947d104ee5833913e4c520108f16.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>小米MIX 3 8GB+128GB</h3>
                <p>DxO百分拍照手机</p>
                <p class="price">2599元</p>
              </div>
            </div></router-link>
          </div>
          <div class="list">
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6f2493e6c6fe8e2485c407e5d75e3651.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>Redmi K20 Pro 6GB+128GB</h3>
                <p>骁龙855， 弹出全面屏</p>
                <p class="price">2999元</p>
              </div>
            </div></router-link>
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/3c1af9783bdc53ed843af5655ca92009.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>小米CC9</h3>
                <p>3200万自拍，4800万三摄</p>
                <p class="price">1799元</p>
              </div>
            </div></router-link>
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/bd25cc614a670f4d5546fe82e239ef86.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>小米CC9 8GB+256GB 美图定制版</h3>
                <p>8GB+256GB，100%美图相机</p>
                <p class="price">2599元</p>
              </div>
            </div></router-link>
            <router-link to="/phone">
            <div class="item">
              <div class="item-img">
                <img
                  style="margin-top: 24px"
                  src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/ca9b4f81af709935556bef9aa21a90e8.jpg"
                  alt
                >
              </div>
              <div class="item-info">
                <h3>Redmi Note 7 Pro</h3>
                <p>索尼4800万超清拍照</p>
                <p class="price">1399元</p>
              </div>
            </div></router-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  }
};
</script>
<style lang="less" scoped>
.box {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}
.box-no1 {
  font-size: 25px;
  display: flex;
  width: 1226px;
  position: relative;
  margin: 0 auto;
  // 一个靠左，一个靠右
  .box-h1 {
    margin-right: auto;
  }
  .box-h2 {
    margin-left: auto;
    color: #424242;
    i {
      font-size: 24px;
    }
    &:hover {
      color: #ff6700;
    }
  }
}
.banner {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.banner-left {
  margin-left: 60px;
}
.banner_left img {
  width: 224px;
  height: 614px;
  // margin: 22px;
}
.banner_right {
  display: flex;
  flex-direction: column;
  width: 1000px;
  height: 614px;
  // margin-right: 10px;
  &:last-child {
    margin-bottom: 0;
  }
}
.list {
  display: flex;
}
.item {
  width: 236px;
  height: 302px;
  background-color: #ffffff;
  text-align: center;
  // margin: 8px;
  margin-left: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.6s;
  &:hover{
    transform: scale(1.08);
    box-shadow: 0px 0px 18px rgba(0,0,0,0.5);
  }
  
}

.item span {
  display: inline-block;
  width: 67px;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
}
.green-pro {
  background-color: #7ecf68;
}
.red-pro {
  background-color: red;
}
.item-img img {
  width: 100%;
  height: 195px;
  box-sizing: border-box;
  
}
.item-info {
  h3 {
    font-size: 14px;
    color: #333333;
    line-height: 14px;
    font-weight: bold;
    :hover {
      background-color: red;
    }
  }

  p {
    color: #999999;
    line-height: 13px;
    margin: 6px auto 13px;
  }
  .price {
    color: #f20a0a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
  }
}
</style>